const Koa = require('koa2')
const app = new Koa()
const static = require("koa-static")
const path = require('path')

const Router = require('koa-router')
const router = new Router()

const fs = require("fs")


app.use(static(path.join(__dirname, 'assets')))
app.use(async (cxt) => {
    let data = ''
    cxt.body = 'hello'
})

app.listen(5050, () => {
    console.log('running at http://127.0.0.1:5050')
})